﻿using Loki.IoC;
using Loki.IoC.Registration;
using Luna.Data.CRM;

namespace Luna.Data
{
    public class AccountInstaller : LokiContextInstaller
    {
        public override void Install(IObjectContext context)
        {
            context.Register(Element.Entity<IAccountData, AccountData>());
            context.Register(Element.Entity<ICategoryData, CategoryData>());

            context.Register(Element.Service<IContactProvider, ContactProvider>());

            context.Register(Element.For<AccountDataMapper>());
            context.Register(Element.For<CategoryDataMapper>());
        }
    }
}